package com.gupaoedu.springboot.springbootfrist.FouthDemo;

import com.gupaoedu.core.GupaoCore;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * <p>
 *
 * </p>
 *
 * @author Nicky
 * @since 2019-07-12
 */
@SpringBootApplication
public class FourMain {

    public static void main(String[] args) {
        //得到所有SpringBoot的配置类
        ConfigurableApplicationContext ca =
                SpringApplication.run(FourMain.class, args);
        System.out.println(ca.getBean(GupaoCore.class).say());
    }
}
